package com.demo.fork.demo1;

/**
 * @author : YU.TAN
 * @date : 2021/10/12 17:57
 */
public class Sub extends Super{

    int x;

    public Sub(String s) {
        super(s);
    }

    public Sub(){
        System.out.println("this extend no");
    }

    public Sub(int x){
        x=this.x;
        System.out.println("this extend x");
    }

    public Sub(int x,String s){
        x=this.x;
        s=this.s;
        System.out.println("this extend x and s");

    }



    public static void main(String[] args) {
        Sub sub=new Sub("1");
    }


}
